
<!--
代码为自动生成 Created by www.magicalcoder.com
 如果你改变了此类 read 请将此行删除
 欢迎加入官方QQ群:323237052
-->
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head  th:include="magicalcoder/v001/include/head :: commonHead('商品附件编辑')"/>

<body class="childrenBody layui-hide">
<form class="layui-form" style="width:80%;">

        <div class="layui-form-item layui-row layui-col-xs12 security_edit_form_param_fileId">
        <label class="layui-form-label">主键</label>
        <div class="layui-input-block">
            <input type="text" disabled="true" class="layui-input" name="fileId"  placeholder="主键自动生成，无需手动编辑,如果重置则变成增加数据"/>
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12 security_edit_form_param_fileSrc">
        <label class="layui-form-label">文件地址</label>
        <div class="layui-input-block">
            <a class="layui-btn a_fileSrc " >
                <i class="layui-icon" >&#xe67c;</i>上传文件或图片
            </a>
            <input class="magicalcoder-layupload layui-input" name="fileSrc" type="text" lay-verify="magicalCoderVerify" magicalcoder-verify="" value=""  placeholder="请输入文件地址"/>
            <div class="layui-upload-list">
                <img class="layui-textarea layui-upload-img img_fileSrc" />
            </div>
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12 security_edit_form_param_goodsId">
        <label class="layui-form-label">所属商品</label>
        <div class="layui-input-block">
            <select name="goodsId"  data-url="admin/goods_rest/search" data-id="id" data-text-fields="goodsName" class="magicalcoder-foreign-select2 layui-input" lay-ignore="true" lay-verify="magicalCoderVerify" magicalcoder-verify="" data-value=""  placeholder="请输入所属商品"><option value=""></option></select>
        </div>
    </div>

    <div class="layui-form-item layui-row layui-col-xs12">
        <div class="layui-input-block">
            <button class="layui-btn security_edit_form_operate_save" lay-submit="" lay-filter="save">立即提交</button>
            <button type="reset" class="layui-hide layui-btn layui-btn-primary" >重置</button>
        </div>
    </div>
</form>
    <div th:replace="magicalcoder/v001/include/main-js :: commonMain" />
    <script type="text/javascript"  th:src="@{/assets/admin/goodsfile/goodsfile-edit.js}"></script>
</body>
</html>
